package com.shmn.gongjiajumain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shmn.common.utils.PageUtils;
import com.shmn.common.utils.Query;

import com.shmn.gongjiajumain.dao.OutgoIncomeHistoryDao;
import com.shmn.gongjiajumain.entity.OutgoIncomeHistoryEntity;
import com.shmn.gongjiajumain.service.OutgoIncomeHistoryService;


@Service("outgoIncomeHistoryService")
public class OutgoIncomeHistoryServiceImpl extends ServiceImpl<OutgoIncomeHistoryDao, OutgoIncomeHistoryEntity> implements OutgoIncomeHistoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OutgoIncomeHistoryEntity> page = this.page(
                new Query<OutgoIncomeHistoryEntity>().getPage(params),
                new QueryWrapper<OutgoIncomeHistoryEntity>()
        );

        return new PageUtils(page);
    }

}